<script>
    <% if (interimUser.name == "") { %>
        alert("You are not logged in, please login（。＾▽＾）");
        window.location.href = "/loginRegister";
    <% } else if (moduleTitle == "Release" && interimUser.permissions == "user") { %>
        alert("You do not have sufficient permissions to browse this page（。＾▽＾）");
        window.history.go(-1);
    <% } %>
</script>